-- card: 4417 from stack: in -- bmap block id: 0 -- flags: 0000 -- background id: 2721 -- name: ShowMenu ----- HyperTalk script ----- on arrowKey direction if direction is "right" then visual effect dissolve go to card "index card" else pass arrowKey end arrowKey on doMenu what if what is in "First Next Last" then visual effect dissolve go to card "index card" else pass doMenu end doMenu -- part 1 (button) -- low flags: 00 -- high flags: A003 -- rect: left=323 top=270 right=287 bottom=453 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Go See NewMenu ----- HyperTalk script ----- on mouseUp go to card id 3302 Find "ShowMenu" in field "Description" end mouseUp -- part 2 (button) -- low flags: 00 -- high flags: 0001 -- rect: left=261 top=304 right=331 bottom=293 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: -- part contents for background part 20 ----- text ----- 8 -- part contents for background part 1 ----- text ----- XCMD -- part contents for background part 22 ----- text ----- ShowMenu(menuNumber) -- part contents for background part 13 ----- text ----- ShowMenu is an XCMD (external command) that will redisplay any menus you've added to HyperCard using the NewMenu XFCN. HyperCard doesn't know you've added menus, and if you change userLevels or use the paint tools HyperCard will erase your menus accidentally. It doesn't mean it, it just doesn't know any better. An example of using ShowMenu would be: on idle global myMenu ShowMenu myMenu pass idle end idle Again, the menu number should be the same number that was returned by NewMenu. For a more efficent method of use, see the sample script provided with NewMenu.